# -*- coding: utf-8 -*-
# UnitTests for Class Vector
from vector import Vector

myVector = Vector(3,4)
assert myVector.length() == 5
assert myVector.lengthSquared() == 25
myVector.normalizeInPlace()
assert myVector.length() == 1


myVector = Vector(3,4)
myVector = myVector / float(2)
assert myVector.length() == 2.5

myVector = Vector(3,4)
myVector2 = Vector(1,1)
myVector = myVector - myVector2
assert myVector.x == 2 and myVector.y == 3


myVector = Vector(3,4)
myVector2 = Vector(5,7)
assert (myVector * myVector2) == 43



